package com.itheima.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author spt
 * @description  分页实体类
 * @date 2019/9/16
 **/
public class PageResult implements Serializable {
    private Long total;
    private List rows;

    @Override
    public String toString() {
        return "PageResult{" +
            "total=" + total +
            ", rows=" + rows +
            '}';
    }

    public PageResult(Long total, List rows) {
        this.total = total;
        this.rows = rows;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }
}
